package cn.ift8.service.impl;

import cn.ift8.dao.CustomerDao;
import cn.ift8.domain.Customer;
import cn.ift8.service.CustomerService;

import java.util.List;

/**
 * Created by IFT8
 * on 2015/8/24.
 */
public class CustomerServiceImp implements CustomerService {
    public CustomerDao getCustomerDao() {
        return customerDao;
    }

    public void setCustomerDao(CustomerDao customerDao) {
        this.customerDao = customerDao;
    }

    private CustomerDao customerDao;

    @Override
    public void save(Customer customer) {
        customerDao.save(customer);
    }

    @Override
    public void del(Customer customer) {
        customerDao.del(customer);
    }

    @Override
    public Customer getById(Long id) {
        return customerDao.getById(id);
    }

    @Override
    public List<Customer> getCustomers() {
        return customerDao.getCustomers();
    }
}
